//
//  WDSourceManager.m
//  WDPolymerizeSDK
//
//  Created by little People on 2023/6/1.
//

#import "WDSourceManager.h"

@implementation WDSourceManager
+ (UIImage *)WDImageWithName:(NSString *)imageName
{
//    NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"WDSource" ofType:@"bundle"];
    NSString *bundlePath = [[NSBundle bundleForClass:[self class]].resourcePath stringByAppendingPathComponent:@"/WDSource.bundle"];
    NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
    UIImage *image = [UIImage imageNamed:imageName inBundle:bundle compatibleWithTraitCollection:nil];
    return image;
}
@end
